/*
 * @Date: 2022-03-30 09:13:51
 * @LastEditors: fenglan
 * @LastEditTime: 2022-03-30 14:41:56
 * @FilePath: /payment/pay/src/components/HOC/HocButton/CommonButton.jsx
 */
import React, { Component } from 'react'
import { Button } from 'antd'
import HocBUtton from './HocBUtton'
 class CommonButton extends Component {
  render() {
    // 传递按钮类型，点击事件，按钮名称，类名
    const {type,handlerClick,buttonName,className,icon ,size} =this.props
    return (
      <div>
        <Button type={type} onClick={handlerClick} className={className} size={size} icon={icon}>{buttonName}</Button>
      </div>
    )
  }
}
export default HocBUtton(CommonButton)
